#ifndef KEYBINDWIDGET_H
#define KEYBINDWIDGET_H

#include <qwidget.h>

#include "KeyBindManager.h"

class QListView;
class QComboBox;
class QCheckBox;
class KeyBindManager;

class KeyBindWidget: public QWidget
{
	Q_OBJECT
	
public:
	KeyBindWidget(KeyBindManager *, QWidget *parent = NULL);
	
	void updateKeyBindManager();
	void reloadKeyBindManager();
	
protected:

protected slots:
	void addBind();
	void changeBind();
	void removeBind();
	
	void resetDefaultBind();
	void clearAllBind();
	
private:
	QListView *bindList;
	QComboBox *qtKeys;
	QComboBox *hostKeys;
	QCheckBox *shift;
	
	KeyBindManager *manager;
};

#endif	// KEYBINDWIDGET_H
